package com.siam.package_rider.feign;

import com.siam.package_common.entity.BasicResult;
import com.siam.package_rider.entity.TbRiderWithdrawRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "rider-siam")
public interface RiderWithdrawRecordFeignApi {

    @PostMapping(value = "/api/riderWithdrawRecord/queryPaymentProcessingRecord")
    BasicResult<List<TbRiderWithdrawRecord>> queryPaymentProcessingRecord(@RequestParam("riderId") Long riderId);

    @PostMapping(value = "/api/riderWithdrawRecord/updateAuditStatusSuccess")
    BasicResult updateAuditStatusSuccess(@RequestParam("orderNo") String orderNo);

    @PostMapping(value = "/api/riderWithdrawRecord/updateAuditStatusFail")
    BasicResult updateAuditStatusFail(@RequestParam("orderNo") String orderNo, @RequestParam("auditReason") String auditReason);
}